package com.ftg.youx.remote;

import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ftg.youx.tools.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述     调用一下sys模块下面的empcontroller里面的方法
 *
 * @author 布衣
 * @date 2024/11/27
 */
@FeignClient(name="youxsys")
public interface CallSysUserController {

    // 面向接口编程却可以接收类的实例
    @GetMapping("/sys/emp/list")
    public String list(
            @RequestParam("page") Integer page,
            @RequestParam("size") Integer size,
            @RequestParam(value = "name", required = false) String name
    );
}
